package com.aiti.lulian.entity.newCard;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "名片隐私设置")
@TableName("card_privacy_setting")
public class CardPrivacySetting {

    @ApiModelProperty(name = "主键")
    @TableId(type = IdType.INPUT, value = "base_id")
    private String baseId;

    @ApiModelProperty(name = "用户ID")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(name = "名片ID")
    @TableField("card_id")
    private String cardId;

    /**
     *  0否 1是
     */
    @ApiModelProperty(name = "是否可以搜索到我")
    @TableField("discoverable")
    private Byte discoverable;

    /**
     *  0否 1是
     */
    @ApiModelProperty(name = "是否可以出现在人气榜上")
    @TableField("on_popular")
    private Byte onPopular;

    /**
     *   0否 1是
     */
    @ApiModelProperty(name = "是否允许对他人展示个人信息")
    @TableField("info_visible")
    private Byte infoVisible;

    /**
     *  0否 1是
     */
    @ApiModelProperty(name = "是否允许别人转发我的名片")
    @TableField("card_shareable")
    private Byte cardShareable;

    @ApiModelProperty(name = "更新时间")
    @TableField(value = "base_update_time")
    private Date baseUpdateTime;
}
